package com.zg.system.auth.domain.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class RoleAddMenuReq implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色id", required = true)
    @NotNull(message = "【角色id】字段不能为NULL")
    private Long roleId;

    @ApiModelProperty(value = "菜单ID数组", required = true)
    @NotEmpty(message = "【菜单ID数组】字段不能为NULL")
    private List<Long> menuIds;
}
